package com.boliq.demo.adapter;

import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentPagerAdapter;

import com.boliq.demo.DemoFragment;

public class MainVpAdapter extends FragmentPagerAdapter {

    public MainVpAdapter(@NonNull FragmentManager fm) {
        super(fm);
    }

    @NonNull
    @Override
    public Fragment getItem(int position) {
        DemoFragment demoFragment = new DemoFragment();

        return demoFragment;
    }

    @Override
    public int getCount() {
        return 3;
    }
}
